#include "Lidar.h"

Lidar::Lidar() {
    lidarModel = "RS-Helios-16p";
    channelCount = 16;
    range = 100;
    power = 8;
}

void Lidar::print() const {
    cout << "激光雷达型号: " << lidarModel << endl;
    cout << "通道数: " << channelCount << endl;
    cout << "测试范围: " << range << " m" << endl;
    cout << "功耗: " << power << " W" << endl;
}

void Lidar::save(ofstream& outFile) const {
    outFile << lidarModel << endl;
    outFile << channelCount << endl;
    outFile << range << endl;
    outFile << power << endl;
}
